package com.hzdp.web.action;

import org.springframework.beans.factory.annotation.Autowired;

import com.hzdp.entity.Brand;
import com.hzdp.service.BrandService;

public class BrandAction extends BaseAction {

	private Brand brand;
	private String name;

	@Autowired
	private BrandService brandService;

	public String execute() {
		brand = brandService.findByUrl(name);
		return "success";
	}

	public void setName(String name) {
		this.name = name;
	}

	public Brand getBrand() {
		return brand;
	}

}
